from datetime import datetime

from pydantic import BaseModel, Field


class DepartmentSchemas(BaseModel):
    """部门参数"""

    id: int = Field(None, description="id")
    name: str = Field(None, description="组织名称")
    type: str = Field(None, description="组织类型")
    department_route_id: str = Field(None, description="部门id路由")
    department_route: str = Field(None, description="部门路由")
    parent_id: int = Field(None, description="上级组织名称")
    parent_name: str = Field(None, description="上级组织名称")
    remark: str = Field(None, description="备注")


class DutySchemas(BaseModel):
    """岗位参数"""

    id: int = Field(None, description="id")
    name: str = Field(None, description="岗位名称")
    type: str = Field(None, description="岗位类型")
    level: str = Field(None, description="岗位等级")
    remarks: str = Field(None, description="岗位等级")

